<template>
  <div style="text-align: center;" >
    签约记录
   
    <el-table
    :data="orders"
    style="width: 70%"
    max-height="1000"
    >
    <el-table-column
      fixed
      prop="startTime"
      label="开始日期"
      width="150">
    </el-table-column>
    <el-table-column
      fixed
      prop="endTime"
      label="结束日期"
      width="150">
    </el-table-column>
    <el-table-column
      prop="pname"
      label="姓名"
      width="120">
    </el-table-column>
    <el-table-column
      prop="ostate"
      label="状态"
      width="120">
    </el-table-column>
    
    <el-table-column
      fixed="right"
      label="操作"
      width="120">
      <template slot-scope="scope">
        <el-button
          @click.native.prevent="deleteRow(scope.$index, tableData)"
          type="text"
          size="small">
          查看(方法未写)
        </el-button>
      </template>
    </el-table-column>
   
  </el-table>
   
  </div>
</template>

<script>
export default {
   mounted(){
    this.appointment_init();
  },
  data() {
    return {
      orders: []
     
    };
  },
  methods:{

    appointment_init(){
        let that=this;
       let uid=sessionStorage.getItem("uid");
      this.$axios.get("doctor-serv/doctor/getAllOrdesByDid/",{
        params:{did:1}
      })
       .then((res) => {
         console.log(res);
        if(res.data.code==200){
         that.orders=res.data.data;
         
         console.log(that.orders);
        }
        });
    }
  }
}
</script>

<style>

</style>